\section{reg\+\_\+request.\+c File Reference}
\label{reg__request_8c}\index{reg\+\_\+request.\+c@{reg\+\_\+request.\+c}}


Register request functions.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ ec\+\_\+reg\+\_\+request\+\_\+init} (\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Register request constructor. \end{DoxyCompactList}\item 
void \textbf{ ec\+\_\+reg\+\_\+request\+\_\+clear} (\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg)
\begin{DoxyCompactList}\small\item\em Register request destructor. \end{DoxyCompactList}\item 
uint8\+\_\+t $\ast$ \textbf{ ecrt\+\_\+reg\+\_\+request\+\_\+data} (\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg)
\begin{DoxyCompactList}\small\item\em Access to the register request\textquotesingle{}s data. \end{DoxyCompactList}\item 
\textbf{ ec\+\_\+request\+\_\+state\+\_\+t} \textbf{ ecrt\+\_\+reg\+\_\+request\+\_\+state} (const \textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg)
\begin{DoxyCompactList}\small\item\em Get the current state of the register request. \end{DoxyCompactList}\item 
void \textbf{ ecrt\+\_\+reg\+\_\+request\+\_\+write} (\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg, uint16\+\_\+t address, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Schedule an register write operation. \end{DoxyCompactList}\item 
void \textbf{ ecrt\+\_\+reg\+\_\+request\+\_\+read} (\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$reg, uint16\+\_\+t address, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Schedule a register read operation. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Register request functions. 



\subsection{Function Documentation}
\mbox{\label{reg__request_8c_abb50aa7b7886a25addbf52063faa4abc}} 
\index{reg\+\_\+request.\+c@{reg\+\_\+request.\+c}!ec\+\_\+reg\+\_\+request\+\_\+init@{ec\+\_\+reg\+\_\+request\+\_\+init}}
\index{ec\+\_\+reg\+\_\+request\+\_\+init@{ec\+\_\+reg\+\_\+request\+\_\+init}!reg\+\_\+request.\+c@{reg\+\_\+request.\+c}}
\subsubsection{ec\+\_\+reg\+\_\+request\+\_\+init()}
{\footnotesize\ttfamily int ec\+\_\+reg\+\_\+request\+\_\+init (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$}]{reg,  }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption})}



Register request constructor. 

\begin{DoxyReturn}{Returns}
Zero on success, otherwise a negative error code. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em reg} & Register request. \\
\hline
{\em size} & Memory size. \\
\hline
\end{DoxyParams}


Definition at line 48 of file reg\+\_\+request.\+c.

\mbox{\label{reg__request_8c_ab5a73a3a36f63ee80aeafacdb3c9e6d2}} 
\index{reg\+\_\+request.\+c@{reg\+\_\+request.\+c}!ec\+\_\+reg\+\_\+request\+\_\+clear@{ec\+\_\+reg\+\_\+request\+\_\+clear}}
\index{ec\+\_\+reg\+\_\+request\+\_\+clear@{ec\+\_\+reg\+\_\+request\+\_\+clear}!reg\+\_\+request.\+c@{reg\+\_\+request.\+c}}
\subsubsection{ec\+\_\+reg\+\_\+request\+\_\+clear()}
{\footnotesize\ttfamily void ec\+\_\+reg\+\_\+request\+\_\+clear (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+reg\+\_\+request\+\_\+t} $\ast$}]{reg }\end{DoxyParamCaption})}



Register request destructor. 


\begin{DoxyParams}{Parameters}
{\em reg} & Register request. \\
\hline
\end{DoxyParams}


Definition at line 72 of file reg\+\_\+request.\+c.

